/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
}

.header h1 {
    margin: 0;
    padding: 0;
}

.nav ul {
    list-style: none;
    display: flex;
    margin-top: 10px;
}

.nav li {
    margin-right: 20px;
}

.nav a {
    color: #fff;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 20px;
}

/* 表单样式 */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.btn-link {
    display: inline-block;
    margin-left: 10px;
    color: #333;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 消息样式 */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* 列表样式 */
.list-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.list-container h2 {
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f2f2f2;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.action-buttons a {
    margin-right: 10px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

.btn-view {
    background-color: #17a2b8;
    color: #fff;
}

.btn-edit {
    background-color: #ffc107;
    color: #333;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
}

.btn-back {
    background-color: #6c757d;
    color: #fff;
}

.no-data {
    font-style: italic;
    color: #6c757d;
}

/* 详情页样式 */
.detail-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.label {
    font-weight: bold;
    display: inline-block;
    width: 100px;
}

/* 自定义样式表 */

/* Markdown内容样式 */
.markdown-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.markdown-content h1 {
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content h4 {
    font-size: 1.25rem;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.markdown-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #007bff;
    padding: 0.5rem 1rem;
    color: #6c757d;
    background-color: #f8f9fa;
    margin: 1rem 0;
}

.markdown-content ul, 
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.markdown-content table, 
.markdown-content th, 
.markdown-content td {
    border: 1px solid #dee2e6;
}

.markdown-content th, 
.markdown-content td {
    padding: 0.5rem;
    text-align: left;
}

.markdown-content th {
    background-color: #f8f9fa;
}

/* 自定义头像样式 */
.avatar-circle {
    width: 100px;
    height: 100px;
    background-color: #007bff;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle.sm {
    width: 60px;
    height: 60px;
}

.avatar-circle.lg {
    width: 120px;
    height: 120px;
}

.initials {
    position: relative;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
}

.avatar-circle.sm .initials {
    font-size: 28px;
}

.avatar-circle.lg .initials {
    font-size: 60px;
}

/* 博客卡片样式 */
.blog-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 页面过渡动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 